<!DOCTYPE html>
<html>

  <head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="viewport" content="width=device-width,maximum-scale=2">
    <meta name="description" content="{{ site.title | default: site.github.repository_name }} : {{ site.description | default: site.github.project_tagline }}">

    <link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">

    <title>{{ site.title | default: site.github.repository_name }}</title>
  </head>

  <body>

    <!-- HEADER -->
    <div id="header_wrap" class="outer">
        <header class="inner">
          <a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>

          <h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
          <h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>

          {% if site.show_downloads %}
            <section id="downloads">
              <a class="zip_download_link" href="{{ site.github.zip_url }}">Download this project as a .zip file</a>
              <a class="tar_download_link" href="{{ site.github.tar_url }}">Download this project as a tar.gz file</a>
            </section>
          {% endif %}
        </header>
    </div>

    <!-- MAIN CONTENT -->
    <div id="main_content_wrap" class="outer">
      <section id="main_content" class="inner">
        {{ content }}
      </section>
    </div>

    <!-- FOOTER  -->
    <div id="footer_wrap" class="outer">
      <footer class="inner">
        {% if site.github.is_project_page %}
        <p class="copyright">{{ site.title | default: site.github.repository_name }} maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
<script>
//idea stolen from https://github.com/Calvein/humble-games/blob/gh-pages/scripts/script.js. too lazy to do this properly...
var xhr = new XMLHttpRequest();
xhr.open('get', 'https://api.github.com/repos/ethanhs/WSL-Programs/contributors', true);
xhr.responseType = 'json';
xhr.onload = function() {
	var status = xhr.status;
	if (status == 200) {
		var contents = [];
		xhr.response.map(function(contributor){
			if(contributor.login!=='ethanhs'){
				var a = document.createElement('a');
				a.innerText = contributor.login;
				a.href=contributor.html_url;
				contents.push(a.outerHTML);
			}
		});
		var cEle = document.querySelector('#footer_wrap > footer > p.copyright');
		cEle.innerHTML += " with contributions from " + contents.join(', ');
	}
};
xhr.send();
</script>
        {% endif %}
        <p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
      </footer>
    </div>



  </body>
</html>
